package com.qiyang.service.impl;

import com.qiyang.entity.User;
import com.qiyang.mapper.UserMapper;
import com.qiyang.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created on 2020/12/16.
 *
 * @author qiyang.
 * 描述：
 */
@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserMapper userMapper;

    public User getUser(Long id) {
        System.out.println("spring集成成功");
        User user = userMapper.selectById(id);
        return user;
    }
}
